<%-- 
    Document   : A10
    Created on : 2014/8/6, 上午 11:19:14
    Author     : sally
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String user = request.getParameter("user");
    String year = request.getParameter("year");
    String blood = request.getParameter("blood");
    //String abc = request.getParameter("abc");
    String abc[] = request.getParameterValues("abc");
    String city[] = request.getParameterValues("city");
    String msg = request.getParameter("msg");
    String pw = request.getParameter("pw");

%>


<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello A10表單練習!</h1>
	<%=  user%> , <br><%= year%> <br> <%= blood%>	  <br>	
	<%
	    for (String x : abc) {
		out.println(x + ",");
	    }
	%>
	<br>	 

	<%     for (String x : city) {
		out.println(x + ",");
	    }
	%>	
	<br><%= msg%><br>  <%= pw%>

    </body>
</html>
